// 3_5
// two number operations
void Calcl(double,double,char);
#include<iostream>
int main()
{
	double number1 = 0.0;
	double number2 = 0.0;
	char op;
	std::cout << "Enter number1:\t";
	std::cin >> number1;
	std::cout << "Enter number2:\t";
	std::cin >> number2;
	std::cout << "Select operation +\t-\t/\t*\t ";
	std::cin >> op;
	Calcl(number1,number2,op);
	return 0;
}
void Calcl(double num1,double num2, char ch)
{
	if( '/'  == ch) {
		if( 0 != num2 ){
		std::cout << "num1/num2= " << num1/num2 << std::endl;
	} 
		else{
			std::cerr << "Error!!! Number isn't divice in 0 " << std::endl;
		}
	}
		switch(ch)
		{
			case '+':
				std::cout << "Result is: " << num1+num2 << std::endl;
				break;
			case '-':
				std::cout << "Result is: " << num1-num2 << std::endl;
				break;
			case '*':
				std::cout << "Result is: " << num1*num2 << std::endl;
				break;
			default:
				std::cerr << "End " << std::endl;
		}

	}